/**
 * @description
 * This service make the routing for corresponding address: <br>
 * "/": courseManage <br>
 */

appSkeleton.config(
    function ($routeProvider) {
        $routeProvider.
            when('/', {
                template: '<function></function>'

            })
            .when('/function_b', {
                template: '<function-b></function-b>',
                resolve:  ['$ocLazyLoad', function($ocLazyLoad) {
                    return $ocLazyLoad.load({
                        name: 'xcomponent-widgets',
                        files: [
                            'bower_components/xcomponent-widgets/build_on_demand/function_A.js'
                        ]
                    });
                }]
            });


    }
);
/*
appSkeleton.config(function($urlRouterProvider,$stateProvider, $locationProvider) {
    $urlRouterProvider.otherwise("/");
    $stateProvider
        .state('index', {
            url:'/',
            views: {
                "viewBody1": { template: "<skeleton-display-and-manage></skeleton-display-and-manage>" }
            }
        })
        .state('employeeManage', {
            url: "/employeeManage",
            views: {
                "viewBody1": { template: "<employee-display-and-manage></employee-display-and-manage>" }
            }
        })
        .state('employeeManage.summary', {
            url: "/summary",
            views: {
                "viewBody2": { template: "<employee-display-summary></employee-display-summary>" }
            }
        })
        .state('employeeManage.employed', {
            url: "/form",
            views: {
                "viewBody2": { template: "<employee-display-form></employee-display-form>" }
            }
        })
        .state('employeeManage.sitemap', {
            url: "/sitemap",
            views: {
                "viewBody2": { template: "<employee-display-organigram></employee-display-organigram>" }
            }
        })

        .state('employeeManage.expense', {
            url: "/expense",
            views: {
                "viewBody2": { template: "<employee-display-expense></employee-display-expense>" }
            }
        })
        .state('employeeManage.pdfviewer', {
            url: "/pdfviewer",
            views: {
                "viewBody2": { template: "<skeleton-pdf-viewer></skeleton-pdf-viewer>" }
            }
        })

});*/

